home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.03 Mar 96 / SlidingTiles ƒ / Solve.h < prev    next >
Encoding:
Text File  |  1995-12-24  |  530 b   |  14 lines  |  [TEXT/CWIE]

  1. typedef Boolean /*legalMove*/ (*MoveProc)(
  2.                       /* Callback procedure to move tile at    */
  3.   long tileToMoveRow, /*   these coordinates into the location */
  4.   long tileToMoveCol  /*   of adjacent empty tile              */
  5. );
  6.  
  7. void SolveTiles(
  8.   long *tiles,      /* pointer to array of tiles where         */
  9.   long numRows,     /*   tile (row,col) is at                  */
  10.   long numCols,     /*   *(tiles + row*numCols + col)          */
  11.   MoveProc MakeMove /* Callback procedure to move a tile       */
  12. );
  13.  
  14.